package com.wms.service.impl;

import com.wms.mapper.ChartMapper;
import com.wms.service.ChartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;
import java.util.Map;

/**
 * ---Do First---
 *
 * @author:wellseasun
 * @date:2025/5/3 下午 4:42
 * @desc:
 */
@Service
public class ChartServiceImpl implements ChartService {
    @Autowired
    private ChartMapper chartMapper;

    @Override
    public List<Map<String, Double>> getChartData() {
        return chartMapper.getChartData();
    }

    @Override
    public Integer getPurchaseOrderNum() {
        return chartMapper.getPurchaseOrderNum();
    }

    @Override
    public Integer getPlatformOrderNum() {
        return chartMapper.getPlatformOrderNum();
    }

    @Override
    public Integer getReturnOrderNum() {
        return chartMapper.getReturnOrderNum();
    }

    @Override
    public List<Map<String, Integer>> getReturnOrderNumData() {
        return chartMapper.getReturnOrderNumData();
    }
}
